import '@/utils/request'
import service from '@/utils/request'
// const service = require('@/utils/request')
// console.log('org', service)
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    // 获取用户所在机构
    hrOrgGetOrgByUserId (params) {
        return httpGet({
            url: '/hr/org/getOrgByUserId',
            params
        })
    },
    // 获取本机构及其以下机构
    hrOrgGetChildrenOrg (params) {
        return httpGet({
            url: '/hr/org/getChildrenOrg',
            params
        })
    },
}

export default request
